package com.focus.xyz.mobile.pages;

import com.focus.xyz.core.common.keyword.Action;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

/**
 * Created by chenmeng on 2016/7/26.
 */
public class MProdInfoPage {

    private Action action;
    @FindBy(xpath = "//button/span[text()='立即投保']")
    private WebElement tbBtn;

    public MProdInfoPage(WebDriver driver,Action action){
        this.action = action;
        PageFactory.initElements(driver,this);
    }

    public void toubao() throws Exception{
        action.click(tbBtn);
    }



}
